#!/bin/bash targetProjectFile=rfrx export DEFINES="-mmcu=attiny84 -DF_CPU=16000000UL -DBOARD=1 -fno-strict-aliasing" # export PATH=$PATH:/usr/local/avr/bin rm *.hex *.elf # /usr/local/avr/bin/avr-gcc avr-gcc $DEFINES -Wall -O1 -std=gnu99 -o $targetProjectFile.o -c $targetProjectFile.c avr-gcc $DEFINES -Wl,-Map=$targetProjectFile.map $targetProjectFile.o -o $targetProjectFile.elf avr-objcopy -O ihex -R .eeprom $targetProjectFile.elf $targetProjectFile.hex